package com.csiec.clock.bean;

import androidx.lifecycle.MutableLiveData;

public class LocationInfo {

    private MutableLiveData<String> position;
    private MutableLiveData<String> name;

    static LocationInfo locationInfo;

    public static LocationInfo getLocationInfo() {
        if (locationInfo == null) {
            locationInfo = new LocationInfo();
            locationInfo.name = new MutableLiveData<>();
            locationInfo.position = new MutableLiveData<>();
        }
        return locationInfo;
    }

    public MutableLiveData<String> getPosition() {
        return position;
    }

    public void setPosition(MutableLiveData<String> position) {
        this.position = position;
    }

    public MutableLiveData<String> getName() {
        return name;
    }

    public void setName(MutableLiveData<String> name) {
        this.name = name;
    }
}
